package com.ha;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.security.crypto.bcrypt.BCryptPasswordEncoder;

@SpringBootApplication
public class SpringBootRun {
    public static void main(String[] args) {

        SpringApplication.run(SpringBootRun.class, args);
      // encod();

    }
    //通过spring 的 BCryptPasswordEncoder创建一个密文.提高安全性
    //
    static void  encod(){
        //创建的随机盐的密码
        BCryptPasswordEncoder encoder=new BCryptPasswordEncoder();
        String pwd=encoder.encode("123");
        System.out.println(pwd);

    }
}
